package com.system.api.rbac.entity.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 *  权限列表
 * @author: lslands
 * @description:   
 * @version：v1.0
 * @date:    2024/6/13 21:24
 */
@Data
@Builder
@NoArgsConstructor
public class PermissionListVo implements Serializable {

    /**
     * 权限Id
     */
    private Long id;
    /**
     * 权限名称
     */
    private String name;
    /**
     * 子集
     */
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private List<PermissionListVo> children;


    public PermissionListVo(Long id, String name, List<PermissionListVo> children) {
        this.id = id;
        this.name = name;
        this.children = children;
    }
}
